#ifndef  __tempAd_h   
    #define __tempAd_h
//Hal
	//ad6

	
#define D_adChannel  0x70
//Const	
		//pullup 10k
   #define D_offValue   3900  //断路
	 #define D_shortValue 330

//Var
	#ifdef __tempAd_c 
	bit data  bAdOff;
	bit data  bAdShort;
	bit data  bHigTemp;
	uint8_t  data adShortNum;
	uint8_t  data adOffNum;
	uint8_t  data curTemp;
	bit  data bErrorBuzz;
	uint8_t  data errorBuzzNum;
	bit data  bUpdateCurTemp;
	bit firstTemp;
	#else
	extern 	bit firstTemp;
	extern bit data  bUpdateCurTemp;
	extern bit data  bAdOff;
	extern bit data  bAdShort;
	extern bit data  bHigTemp;
	extern uint8_t data  adShortNum;
	extern uint8_t data  adOffNum;
	extern uint8_t data  curTemp;
	extern bit  data bErrorBuzz;
	extern uint8_t data  errorBuzzNum;
	#endif

//Function
 
    void    getTemp(void)  ;

//void TG();
#endif